﻿<div class="span4 offset4">
	<h1 style="text-align:center">Auditório-DCET</h1>
	<h2 style="text-align:center">Entrar</h2>
	<?php echo Flash::render(); ?>
	<?php echo Form::open('welcome/login', array('class' => 'well')); ?>
	<label>Usuário: </label>
	<input type="text" name="usuario" class="span3" placeholder="Usuário">
	<label>Senha: </label>
	<input type="password" name="senha" class="span3" placeholder="Senha">
	<button type="submit" class="btn btn-primary">Entrar</button>
	<?php echo Form::close(); ?>
</div>

<div class="span12">
	<table class="table table-bordered">
	<thead>
		<tr>
			<th>Atividade</th>
			<th>Período</th>
			<th>Responsável</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach($periodos as $periodo): ?>
		<tr>
			<td>
				<strong><?php echo strtoupper($periodo->reserva->atividade); ?></strong>
			</td>
			<td>
				<p>Dia: <strong><?php echo date('d/m/Y', $periodo->inicio); ?></strong></p>
				<p>Horário: <strong><?php echo date('H:i', $periodo->inicio), 'h às ', date('H:i', $periodo->fim),'h'; ?></strong></p>
			</td>
			<td><?php echo $periodo->reserva->responsavel->nome; ?></td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
</div>